﻿#pragma once
#include"d3d9.h"
#include"d3dx9.h"
#include "Animation.h"

namespace Framework
{
	class Animation;
	class CSprite
	{
	private:
		LPDIRECT3DTEXTURE9 image;
		LPD3DXSPRITE dxSprite;

		int		width;
		int		height;
	public:

		CSprite(){}
		CSprite(char* path);
		~CSprite();
		int GetWidth(){return width;}
		int GetHeight(){return height;}
		void Draw(int x,int y);
		void Draw(int x,int y, float xScaleRatio, float yScaleRatio,D3DXVECTOR2 vRotatteCenter,float angle,D3DCOLOR color,float deep,Animation *anim);
	};
}
